package chapter2.test1;

import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import static junit.framework.TestCase.assertNotNull;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes=Config.class)
public class Test {

    @Autowired
    private CompactDisc cd;

    @org.junit.Test
    public void cdShouldNotBeNull(){
        assertNotNull(cd);
    }

}
